package com.mbc.web.common.client;

public class CommonMessage {
	public static final String saved_message = "Saved successfully.";
	public static final String deleted_message = "Deleted successfully.";
	public static final String delete_confirm_message = "Are you sure to delete?";
	public static final String internal_server_error_message = "Internal server error occured.";
	public static final String record_not_found = "Record not found.";
	
	public static final String saving_message = "Saving...";
	public static final String deleting_message = "Deleting...";
	public static final String loading_message = "Loading...";
	
	/**
	 * Return the formatted message ({intial} is already existed.).
	 * @param initial
	 * @return formatted message.
	 */
	public static String getAlreadyExistedMessage(String initial){
		return initial + " is already existed.";
	}
	
	/**
	 * Return the formatted message ({intial} cannot be deleted.).
	 * @param initial
	 * @return formatted message
	 */
	public static String getDataCannotDeleteMessage(String initial){
		return initial + " cannot be deleted.";
	}
	
	/**
	 * Return the formatted message ({intial} cannot be found.).
	 * @param initial
	 * @return formatted message
	 */
	public static String getDataNotFoundMessage(String initial){
		return initial + " cannot be found.";
	}
}
